package com.mazaiting.instructions.control;

import com.mazaiting.instructions.base.BranchInstruction;
import com.mazaiting.rtda.MtFrame;

/**
 * 进行无条件跳转
 *
 * @author mazaiting
 * @since 2021/8/15
 */
public class GotoInstruction {

    /**
     * goto 指令
     */
    public static class Goto extends BranchInstruction {
        @Override
        public void execute(MtFrame frame) {
            branch(frame, offset);
        }

        @Override
        public String toString() {
            return "goto " + offset;
        }
    }

}
